import http from '@/service/http'
import type * as T from '@/types/api/index'
const workApi: T.IWorkApi = {
  list() {
    return http.get('/photo/collWork')
  },
  add(data) {
    return http.post('/photo/addWork', data)
  },
  edit(data) {
    return http.post('/photo/editWork', data)
  },
  del(data) {
    return http.post('/photo/delWork', data)
  }
}

export default workApi
